Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal clear As Boolean, _ ByVal bytes() As Byte _ ) |
Parameters
- clear
- bytes
Library/Library.Test/TestPassword.cs
C# | Copy Code |
---|---|
byte[] password = Encoding.UTF8.GetBytes(TEST_PASSWORD); PasswordKey pk1 = new PasswordKey(true, password); Assert.AreEqual(new byte[password.Length], password); password = Encoding.UTF8.GetBytes(TEST_PASSWORD); pk1 = new PasswordKey(false, password); Assert.AreEqual(Encoding.UTF8.GetBytes(TEST_PASSWORD), password); |
VB.NET | Copy Code |
---|---|
Dim password As Byte() = Encoding.UTF8.GetBytes(TEST_PASSWORD) Dim pk1 As New PasswordKey(True, password) Assert.AreEqual(New Byte(password.Length) {}, password) password = Encoding.UTF8.GetBytes(TEST_PASSWORD) pk1 = New PasswordKey(False, password) Assert.AreEqual(Encoding.UTF8.GetBytes(TEST_PASSWORD), password) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
PasswordKey ClassPasswordKey Members
Overload List